{$order.status} (<a href="#change-status" class="fancybox">change status</a>)
<div id="change-status-container" style="display:none">
<div id="change-status">
	<form action="?" method="post" class="ajax">
		<table class="table data">
			<tr>
				<td>Status:</td>
				<td><select name="status" id="status">
					<option value="approved" {if $order.status=='approved'}selected="selected"{/if}>Approved</option>
					<option value="cancelled" {if $order.status=='cancelled'}selected="selected"{/if}>Cancelled</option>
					<option value="rejected" {if $order.status=='rejected'}selected="selected"{/if}>Rejected (fraud, etc)</option>
				</select></td>
			</tr>
			<tr class="alt">
				<td>Message:</td>
				<td><textarea name="status_message" id="status_message"></textarea><br />
					<small>email will only be sent to customer if message provided</small></td>
			</tr>
			<tr>
				<td></td>
				<td><button>Change</button></td>
			</tr>
		</table>
	</form>
</div>
</div>